<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head><title>MyIsern - Edit Organization</title></head>
<body>
MyIsern 2.0
  <table border="0">
  <tr valign="center">
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/index.jsp">
         Home
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/selectResearcher.jsp">
         Researchers
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/selectOrganization.jsp">
         Organizations
       </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
      <stripes:link href="/selectCollaboration.jsp">
        Collaborations
      </stripes:link>
    </td>
    <td width="10"></td>
    <td align="center">
       <stripes:link href="/reportDataIntegrity.jsp">
         Data Semantic Check
       </stripes:link>
    </td>
  </tr>  
</table>
  
<hr align="left" width="900">
Edit ISERN Organization:
  <stripes:errors action="/EditOrganization.action"/>
  <stripes:form id="EditOrganizationForm" action="/EditOrganization.action" focus="">
     <table>
        <tr>
           <td>Name:</td>
           <td width="150"><stripes:text name="name"/></td>
        </tr>
        <tr>
           <td>Contact:</td>
           <td><stripes:text name="contact"/></td>
        </tr>
        <tr>
           <td>Home Page:</td>
           <td><stripes:text name="homePage"/></td>
        </tr>
        <tr>
           <td>Country:</td>
           <td><stripes:text name="country"/></td>
        </tr>
        <tr> 
           <td style="text-align: top;">Affiliated Researchers:</td>
           <td>
           <c:forEach var="researcher" items="${actionBean.affiliatedResearchers}">
           <c:if test="${not empty researcher}">
             <stripes:checkbox id="researcher_${researcher}" name="affiliatedResearchers" value="${researcher}" />
             <stripes:label for="researcher_${researcher}">${researcher}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td></td>
           <td><stripes:text name="newAffiliatedResearcher"/></td>
           <td style="text-align: left;" width="30">
             <stripes:submit name="addResearcher" value="Add"/>
           </td>
        </tr>
        <tr>
           <td>Research Description:</td>
           <td><stripes:text name="researchDescription"/></td>
        </tr>
        <tr> 
           <td>Research Keywords:</td>
           <td>
           <c:forEach var="keyword" items="${actionBean.researchKeywords}">
           <c:if test="${not empty keyword}">
             <stripes:checkbox id="keyword_${keyword}" name="researchKeywords" value="${keyword}" />
             <stripes:label for="keyword_${keyword}">${keyword}</stripes:label>
             <br/>
           </c:if>
           </c:forEach>
           </td>
        </tr>
        <tr>
           <td></td>
           <td><stripes:text name="newResearchKeyword"/></td>
           <td style="text-align: left;" width="30">
             <stripes:submit name="addKeyword" value="Add"/>
           </td>
        </tr>
        <tr>
           <td>Type:</td>
           <td><stripes:text name="type"/></td>
        </tr>
        <tr>
             <td style="text-align: center;">
             <stripes:submit name="save" value="Save"/>
           </td>
              <td style="text-align: center;">
              <stripes:submit name="cancel" value="Cancel"/>
           </td>
        </tr>
     </table>
   </stripes:form>
 
 
 
</body>
</html>

